package com.yun.zf.common.admin.model.house;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.util.Date;

/**
 * 房产证信息补充
 */
@Data
public class HouseCertificateMo {
    @ApiModelProperty(value = "证件信息id")
    private String id;
    @ApiModelProperty(value = "房源id")
    private String basicId;

    @NotNull(message = "登记日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @ApiModelProperty(value = "登记日期")
    private Date registrationDate;

    /**
     * 是否共用，是Y 否N
     */
    @ApiModelProperty(value = "是否共用，是Y 否N")
    private String isShare;

    /**
     * 建筑面积
     */
    @ApiModelProperty(value = "建筑面积")
    @NotNull(message = "建筑面积不能为空")
    private BigDecimal constructionArea;

    /**
     * 实际面积
     */
    @ApiModelProperty(value = "实际面积")
    private BigDecimal actualArea;

    @ApiModelProperty(value = "产证证件类型 1房产证，2原始购房合同")
    private int certType;
    /**
     * 房产证编号
     */
    @ApiModelProperty(value = "房产证编号")
    @NotBlank(message = "房产证编号不能为空")
    private String certNumber;

    /**
     * 产权人
     */
    @ApiModelProperty(value = "产权人")
    @NotBlank(message = "产权人不能为空")
    private String owner;

    /**
     * 房产证地址
     */
    @ApiModelProperty(value = "房产证地址")
    @NotBlank(message = "房产证地址不能为空")
    private String address;

    /**
     * 备注
     */
    @ApiModelProperty(value = "备注")
    private String remark;

}
